home *** CD-ROM | disk | FTP | other *** search
/ Champak 142 / Volume 142 Oct 17 2011 - Damaged.iso / Games / operation-graduates.swf / scripts / DefineSprite_958_frame / frame_4 / DoAction.as
Text File  |  2011-10-17  |  825b  |  32 lines

  1. this.back.gotoAndStop("inactive");
  2. this.next.gotoAndStop("empty");
  3. this.play.gotoAndStop("inactive");
  4. if(this.back.hitTest(_root._xmouse,_root._ymouse,false))
  5. {
  6.    this.back.gotoAndPlay("active");
  7. }
  8. this.next.onDragOver = this.next.onRollOver = function()
  9. {
  10.    this.useHandCursor = false;
  11. };
  12. this.next.onDragOut = this.next.onRollOut = null;
  13. this.next.onPress = this.next.onRelease = null;
  14. this.back.onDragOver = this.back.onRollOver = function()
  15. {
  16.    this.gotoAndPlay("active");
  17.    _root.playSound("sound.rollover");
  18. };
  19. this.back.onDragOut = this.back.onRollOut = function()
  20. {
  21.    this.gotoAndStop("inactive");
  22. };
  23. this.back.onPress = function()
  24. {
  25.    _root.playSound("sound.onpress");
  26. };
  27. this.back.onRelease = function()
  28. {
  29.    _root.playSound("sound.onrelease");
  30.    _parent.frame.prevFrame();
  31. };
  32.